\begin{tikzpicture}[>=latex,every node/.style={anchor=south west,,inner sep=0,fill=white}]
    \node(Figure1)[anchor=north,fill=blue!20] at (0,0){  
        \begin{tabular}{|m{2em}<{\centering}|m{2em}<{\centering}|m{2em}<{\centering}|m{2em}<{\centering}|m{2em}<{\centering}|}
            \hline 
            state & ch & 剩余 & 变换 & 备注 \\ \hline
            1 & a & acd\# & 3 &   \\ \hline
            3 & a & cd\# & 3 &   \\ \hline
            3 & c & d\# & 2 &   \\ \hline
            2 & d & \# & 4 &   \\ \hline
            4 & \# &   & ok & 接受 \\ \hline
        \end{tabular}
    };
    
\end{tikzpicture}